﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _4._20
{
    class employee
    {
        protected string Name;
        protected string Adder;

        public employee(string name ,string adder)
        {
            Name = name;
            Adder = adder;
        
        }

    }

    class programmer:employee
    {
        protected double salary;
        protected double money;
        public programmer(string Name, string Adder, double salary,double money):base(Name, Adder)
        {
            this.salary = salary;
            this.money = money;
            double muchmoney = salary + money;
            Console.WriteLine("程序员,姓名:{0},住址:{1},底薪为:{2},提成为:{3},工资为:{4}",Name,Adder,salary,money,muchmoney);
        }
    }

    class secretary:employee
    {
        protected double money1;
        public secretary(string Name, string Adder,double money1) : base(Name, Adder)
       { 
            this.money1 = money1;
            
            Console.WriteLine("秘书,姓名:{0},住址:{1},工资为:{2}", Name, Adder,money1);
        }

    }

    class management:employee
    {
        protected double salary1;
        protected double money1;

        public management(string Name, string Adder, double salary1, double money1) : base(Name, Adder)
        {
            this.salary1 = salary1;
            this.money1 = money1;
            double muchmoney = salary1 + money1;
           

            Console.WriteLine("高层管理,姓名:{0},住址:{1},底薪为:{2},提成为:{3},工资为:{4}", Name, Adder, salary1, money1, muchmoney);
        }

    }

    class dustman:employee
    {
        protected double money1;
        public dustman(string Name, string Adder, double money1) : base(Name,Adder)
        {
            this.money1 = money1;
            Console.WriteLine("清洁工,姓名:{0},住址:{1},工资为:{2}", Name, Adder, money1);
        }


    }


}
